<div id="post_sidebar">
    <?php 
        echo anchor('post/create', 'New Post', array('class'=> 'post_nav_button', 'id' => 'admin_post_new'));
        echo anchor('post','Published', array('class' => 'post_nav_button', 'id' => 'admin_post_published'));
        echo anchor('post/pending/view', 'Pending('.$num_pending.')', array('class' => 'post_nav_button', 'id' => 'admin_post_pending'));
        if ($this->session->userdata('role') !== 'admin') {
            echo anchor('post/rejected', 'Rejected('.$num_reject.')', array('class' => 'post_nav_button', 'id' => 'admin_post_reject'));
        }
        echo anchor('post/draft/'.$this->session->userdata('user_id'), 'Draft('.$num_draft.')', array('class' => 'post_nav_button', 'id' => 'admin_post_draft'));
//            echo anchor('post/trash', 'Trash('.$num_trash.')', 'id="view_trash"');
     ?>
</div>
